package org.dromara.solonplugins.bee.test2;

import org.dromara.solonplugins.bee.config.ImportFile;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.noear.snack.ONode;
import org.noear.solon.annotation.Inject;
import org.noear.solon.test.SolonJUnit5Extension;
import org.noear.solon.test.SolonTest;
import org.teasoft.honey.osql.serviceimpl.ObjSQLRichServiceImpl;

@ExtendWith(SolonJUnit5Extension.class)
@SolonTest(TestApp2.class)
public class DemoAppTest2 {
	
	@Inject
	private ObjSQLRichServiceImpl objSQLRichServiceImpl; 
	
	@Test
	public void test() {
//		ImportFile i = new ImportFile();
		ImportFile i = objSQLRichServiceImpl.selectById(ImportFile.class, "12345678901");
		System.out.println(ONode.stringify(i));
		int num = objSQLRichServiceImpl.count(i);
		System.out.println(num);
	}

}
